package com.jsh.erp.datasource.entities;

import com.jsh.erp.datasource.vo.PromotionGiftWithMaterial;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class PromotionItem {
    @ApiModelProperty("主键")
    private String id;
    @ApiModelProperty("表头id")
    private String headerId;
    @ApiModelProperty("产品id")
    private String materialId;
    @ApiModelProperty("产品价格id")
    private String meId;
    @ApiModelProperty("商品条码")
    private String barCode;
    @ApiModelProperty("商品单位")
    private String commodityUnit;
    @ApiModelProperty("单价 零售价")
    private BigDecimal unitPrice;
    @ApiModelProperty("折扣 百分比 ")
    private BigDecimal discount;
    @ApiModelProperty("特价")
    private BigDecimal specialPrice;
    @ApiModelProperty("每单限量")
    private Integer limitQuantity;
    @ApiModelProperty("累计限量")
    private Integer limitCumulative;
    @ApiModelProperty("已促销数量")
    private Integer quantityPromotion;
    @ApiModelProperty("买满金额")
    private BigDecimal fullAmout;
    @ApiModelProperty("减免金额")
    private BigDecimal creditAmount;
    @ApiModelProperty("购买数量")
    private BigDecimal purchaseQuantity;
    @ApiModelProperty("租户id")
    private String tenantId;
    @ApiModelProperty("删除标记，0未删除，1删除")
    private String deleteFlag;
    @ApiModelProperty("有效标识  0-未上传 1-已上传 2-未下拉（调拨的状态")
    private String uploadFlag;

    private Date updateTime;
    @ApiModelProperty("赠品")
    private List<PromotionGiftWithMaterial> promotionGiftList;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getHeaderId() {
        return headerId;
    }

    public void setHeaderId(String headerId) {
        this.headerId = headerId == null ? null : headerId.trim();
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId == null ? null : materialId.trim();
    }

    public String getMeId() {
        return meId;
    }

    public void setMeId(String meId) {
        this.meId = meId == null ? null : meId.trim();
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode == null ? null : barCode.trim();
    }

    public String getCommodityUnit() {
        return commodityUnit;
    }

    public void setCommodityUnit(String commodityUnit) {
        this.commodityUnit = commodityUnit == null ? null : commodityUnit.trim();
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public BigDecimal getSpecialPrice() {
        return specialPrice;
    }

    public void setSpecialPrice(BigDecimal specialPrice) {
        this.specialPrice = specialPrice;
    }

    public Integer getLimitQuantity() {
        return limitQuantity;
    }

    public void setLimitQuantity(Integer limitQuantity) {
        this.limitQuantity = limitQuantity;
    }

    public Integer getLimitCumulative() {
        return limitCumulative;
    }

    public void setLimitCumulative(Integer limitCumulative) {
        this.limitCumulative = limitCumulative;
    }

    public Integer getQuantityPromotion() {
        return quantityPromotion;
    }

    public void setQuantityPromotion(Integer quantityPromotion) {
        this.quantityPromotion = quantityPromotion;
    }

    public BigDecimal getFullAmout() {
        return fullAmout;
    }

    public void setFullAmout(BigDecimal fullAmout) {
        this.fullAmout = fullAmout;
    }

    public BigDecimal getCreditAmount() {
        return creditAmount;
    }

    public void setCreditAmount(BigDecimal creditAmount) {
        this.creditAmount = creditAmount;
    }

    public BigDecimal getPurchaseQuantity() {
        return purchaseQuantity;
    }

    public void setPurchaseQuantity(BigDecimal purchaseQuantity) {
        this.purchaseQuantity = purchaseQuantity;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId == null ? null : tenantId.trim();
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
    }

    public String getUploadFlag() {
        return uploadFlag;
    }

    public void setUploadFlag(String uploadFlag) {
        this.uploadFlag = uploadFlag == null ? null : uploadFlag.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public List<PromotionGiftWithMaterial> getPromotionGiftList() {
        return promotionGiftList;
    }

    public void setPromotionGiftList(List<PromotionGiftWithMaterial> promotionGiftList) {
        this.promotionGiftList = promotionGiftList;
    }
}
